package cn.tedu.study.response;

import lombok.Getter;

@Getter
public enum StatusCode {
    SUCCESS(20000, "Ok"),
    NOT_LOGIN(1000, "未登录"),
    LOGIN_SUCCESS(1001, "登录成功"),
    USERNAME_EXIST(1002, "用户名已存在"),
    USERNAME_ERROR(1003, "用户名错误"),
    PASSWORD_ERROR(1004, "密码错误"),
    FORBIDDEN_ERROR(40003, "无权访问");

    private Integer code;
    private String message;

    StatusCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    StatusCode() {

    }
}
